I am having trouble solving the the "x" value of a sinusoidal function when given the y value.

Here is a sample question:

d(t) = 2 sin(30t) + 5, solve for t when given the d value of 3 m.

Also another question, T(t) = - 18.9cos30t + 5.8 solve for t when given the T value of 2.

Your help is deeply appreciated