From a raft 50 meters offshore, a life guard wants to swim to shore and run to a snack bar 100 meters down the?

From a raft 50 meters offshore, a life guard wants to swim to shore and run to a snack bar 100 meters down the beach.
a)if the life guard swims at 1 m/s and runs 3 m/s, express the total swimming and running time t as a function the distance x ( in other words, find t(x).
b)using your answer from part , find the minimum time.

Let a 90 degree angle be a point on shore 100 meters from the snack bar and 50 meters from the raft.

Let x = a point on the beach to swim x meters from the right angle
( 0 <= x <= 100 )