Find the number of ways of arranging the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in a row so that the product of any two adjacent numbers is even or a mutliple of 3