A casino advertises that it gives a ​97.1% payback on slot​ machines, and the balance is retained by the casino. If the amount retained by the casino is ​$4836​, find the total amount played on the slot machines.