Pardon my paint skills but I think you have it like this :
(the triangle is right in O)
Basically you need to compute the distance OB, which can be given by the following formula :
$$\tan(\alpha) = OB/OT$$
Then,
$$OB = tan(\alpha)\cdot OT$$
If you know the angle $\alpha$ you already know the distance OT which is 150m, so you know the distance from the ship to the shore
A "realistic" angle could be 73.3° so the ship is 500m from the shore