Find the course and ground speed if Track 150 degree, airspeed 400km/h; wind 040degree, 30km/h.

break the speeds into x-y components.

400 at 150° = (200,200√3)
do the other similarly.
add them up
convert back to compass heading