The diamond ones you multiply the two sides to get the top number and add the two sides to get the bottom. If the number are in other stops besides the two sides you must find a solution that works with the corresponding numbers. I’m not really sure about the rest. Good luck with that!