Simple question on tire size?

I have a 2001 Grizzly 600. The tires on it are 25x8x12 in front and 25x10x12 in back. I dont know anything about atv tire sizes and the general do’s and don’ts yet. The rear tires will do for now. The front tires are in rough shape and aren’t safe to ride with. I have 2 used front tires a friend gave me. They still have decent tread on them. The size of these are 24x8x12s. I’m just wondering if it would be ok to use these since the size is a lil off. Back tires are Maxxis and the two front i’m wanting to put on is Maxxis also. Also, does it matter if the tires are different brands or diff tread patterns?