This is similar to problem 7.21 in "Circuit Analysis and Design" by Ulaby, Maharbiz, and Furse. This is a free/open educational textbook on basic circuit design found here: https://cad.eecs.umich.edu/
Several examples of converting a sinusoid into a phasor. This is a typical method for dealing with phasors in engineering circuits.