Let B be the number of baseball games that Jose attended, and S be the number of soccer games that José attended, then from the part of the question that says that:"Jose attended a total of 8 baseball and soccer" we know that:
and from the part of the problem that says that: " It took him 2 hours to travel to baseball games and 1 hour to travel to Soccer games. He spent 15 hours traveling to the games."
we obtain the second equation, which is:
then the system is both previus equations.