I need help with this is 8th grade math

Answer:
5 hours
Step-by-step explanation:
Mark recieves 3mg per hour. This can be rewritten as y=3x. Cassie recieves 2x+5. To solve, use substitiution. 3x=2x+5. To solve, subtract "2x" from "3x." You then get x=5.