Sorry, the above isn't very clear!
X asked Y to carry out renovation work. Y gave X a price. X accepted this price, and Y was due to start work in a few days.
However, just after X accepted the price, Y realised carrying out the contract would make both of them criminally liable.
Can Y back out of this contract?
Thanks!