Answer
The number of hours is 3 and the total amount spent is $40.
Work Step by Step
Consider the equation for the condition at which both the companies have the same total amount spent
$6x+22=28+4x$
Here, x is the number of hours
Now, solve the above equation
$\begin{align}
& 6x+22=28+4x \\
& 6x-4x=28-22 \\
& 2x=6 \\
& x=3
\end{align}$
Now, calculate the total amount spent after the above obtained number of hours for each company
$6\left( 3 \right)+22=\$40$
Thus, the number of hours after which the total amount spent at each company is same is 3 hours and the total amount spent for each company for this duration is $40.