Breaking ED Agreement Advice

Did the student apply ED to both the top 20 and the state? I thought that ED to a private and a public is “allowed” ? Or did the student apply to the state school with the acceptance to the top 20 already in hand?