A motorboat whose speed in still water is 2.86 m/s must aim upstream at an angle of 25.4 degrees (with respect to a line perpendicular to the shore) in order to travel directly across the stream.What is the resultant speed of the boat with respect to the shore?

Directly across, that means the boat will not go up, or down the shore.