A = distance traveled by steve in north direction by train = 30 miles
B = distance traveled by steve in east direction by train = 25 miles
R = resultant displacement of the steve relative to starting position
using pythagorean theorem
R = √(A² + B²)
inserting the values
R = √(30² + 25²)
R = 39.05 miles
direction : tan⁻¹(B/A) = tan⁻¹(25/30) = 39.8 deg east of north