PUMaC 2019 Individual B Problem 1

Find all nonnegative integers n and m such that 2^{n}=7^{m}+9.