At a local museum, the ratio of adults to children visiting exhibits on a weekend is 7 to 5. If the total number of visitors to the museum that weekend was 240, how many children visited the museum?
To solve this problem, you can represent the number of adults as $7x$ and the number of children as $5x$. The total number of visitors can then be expressed as:
$$7x + 5x = 240$$