Mathematical Matchstick Puzzle: IQ tests and puzzles are a fun way to test and stimulate our brains. We are all…