Let's call the number of children who swam at the public pool "x". The number of adults who swam would be 762 - x. The total revenue from the children would be $1.50 per child * x children = $1.50x. The total revenue from the adults would be $2.00 per adult * (762 - x) adults = $2.00(762 - x).
We know that the total revenue was $1268.50, so we can set up an equation:
$1.50x + $2.00(762 - x) = $1268.50
Expanding the equation:
$1.50x + $1524 - $2.00x = $1268.50
Simplifying the equation:
$0.50x + $1524 = $1268.50
Subtracting $1524 from both sides:
$0.50x = -$255.50
Dividing both sides by -0.50:
x = 511
So, there were 511 children who swam at the public pool, and 762 - 511 = 251 adults.