Answer :
The first thing you should do is write each speed in vector form.
v1: vector water velocity
v2: vector boat speed with respect to water
writing the vectors we have
v1 = (5 * COS (20 * (PI () / 180)) i) + (5 * SENO (20 * (PI () / 180)) j)
v2 = (30 * COS (30 * (PI () / 180)) i) - (30 * SENO (30 * (PI () / 180)) j)
The vector representing the ship's current motion will be given by the sum of vectors v1 and v2
v1 + v2 = (30.67922522 i) + (15.67922522 j)
v1: vector water velocity
v2: vector boat speed with respect to water
writing the vectors we have
v1 = (5 * COS (20 * (PI () / 180)) i) + (5 * SENO (20 * (PI () / 180)) j)
v2 = (30 * COS (30 * (PI () / 180)) i) - (30 * SENO (30 * (PI () / 180)) j)
The vector representing the ship's current motion will be given by the sum of vectors v1 and v2
v1 + v2 = (30.67922522 i) + (15.67922522 j)