recall your d = rt, distance = rate * time
let's say the ship went East at 22mph, now, the ship travelled a total of 212 miles in 11 hours... ok... how many miles did it go East? well, let's say it went "d" miles, and it took "t" hours.
now, if the ship after that went North at a rate of 17mph, then it took the slack from the 11 hours total and "d", or it took going North " 11 - t ", and it covered a distance, of also the slack from 212 miles and "d", or " 212 - d ".

solve for "t", to see how long it took the ship going East.
how many miles it covered? well d = 22t