The average length of a king cobra is 118 inches, which is 22 inches longer than a black mamba. Write and solve an equation to find the average length of a black mamba.