I think your best direction is Real Estate attorney.
You may want to walk,...
You have just been given a counter offer which may give you permission to walk.
Sounds like the listing agent or seller may be a bit mixed up.
have your agent have a discussion with listing agent.
Harold Sharpe - Broker
So Cal Homes
California Department of Real Estate Broker License # 01312992
Best of luck.