Set up a system of equations for each word problem

One scuba diver starts at a depth of 12 meters below the water's surface and ascends at a rate of 1 meter per second. A second diver starts at a depth of 15 feet and ascends at a rate of 2 meters per second.
After how many seconds will they be at the same depth? What is this depth?

2 answers

diver 1
depth = 12 - 1 t

diver 2
depth = 15 - 2 t

so
12 - t = 15 - 2 t
t = 15-12
t = 3 seconds

12 - t = 12 - 3 = 9 meters
Thank you!