[tex]\text{Turn the scenarios into equations:}\\\\\text{Polite's parking:}\\\\y=4x+2\\\\\text{Gary's garage:}\\\\y=2x+8\\\\\text{To find when the parking costs the same, solve the expressions together:}\\\\4x+2=2x+8\\\\\text{Solve for x:}\\\\4x+2=2x+8\\\\\text{Subtract 2x from both sides}\\\\2x+2=8\\\\\text{Subtract 2 from both sides}\\\\2x=6\\\\\text{Divide by 2}\\\\x=3\\\\\boxed{\text{In 3 hours, the cost will be the same}}\\\\[/tex]
[tex]\text{To find the cost, plug in 3 to x in one of the equations:}\\\\y=4(3)+2\\\\y=12+2\\\\y=14\\\\\boxed{\text{The cost would be \$14}}[/tex]