solve
clear
example
result: