I have a stamp machine. Machine automatic has a reset input, an entry whose values match the type of coin inserted, an entry to select two types of stamps and a coin return asking for input. The two possible selections are 20 money 50 money and the car must give change. Type1 outputs correspond stamps, Type2, coin return, rest 5 bani, 10 bani rest. Can someone help me with a scheme with flip flop?