For math class, Matt needs to find out if a shape can fit inside another shape, based solely on their area. The only problem is, HE SUCKS AT MATH! He has asked you, his older brother, to make a program that will answer all his math questions.
Write a function that takes two shapes, with different inputs, and returns true if the second shape has an area smaller than the first.
The inputs will be in a standardized format per shape:
shapeInShape("Circle, 3", "Rectangle, 3, 14") ➞ false
shapeInShape("Triangle, 10, 5", "Circle, 2") ➞ true
shapeInShape("Pentagon, 10", "Circle, 10") ➞ false
Remember, the first item in each string will be the name of the shape, and all relevant data will be provided following said name.