My professor gave us this problem that says that we have a 1x8 board and we have dominoes that are 2 units long and squares that are one unit long. how many different ways can you tile the the board?

If you can help me just know what formula/method to use to solve this problem in any 1xn or mxn board that would be great thanks so much