I want write a program to calculate cutting shape of foam. For example, a piece of big foam can cut to 3 different size of foam same thick and each can cut to piece in different thick. like picture below. how can i make calculation. It possible how can i make a shape picture to display after enter number. or any good suggestion.