Answer:
[tex]They\ stayed\ for\ 2\ hours\\\\And\ each\ one\ payed=\$12[/tex]
Step-by-step explanation:
[tex]Let\ both\ spend\ x\ hours[/tex]
Payment by Ronald:
[tex]Ronald\ paid\ \$ 12.[/tex]
Payment by Tyler:
[tex]Tyler\ paid\ $4\ up\ front\ and\ $4\ per\ hour\\\\Total\ amount\ paid\ by\ Tyler=4+4\times number\ of\ hours\\\\Total\ amount\ paid\ by\ Tyler=4+4\times x\\\\Total\ amount\ paid\ by\ Tyler==4+4x[/tex]
[tex]Amount\ paid\ by\ both\ of\ them\ are\ equal\\\\4x+4=12\\\\4x=12-4\\\\4x=8\\\\x=2[/tex]
[tex]They\ stayed\ for\ 2\ hours\\\\And\ each\ one\ payed=\$12[/tex]