Given:
Markers are sold in packages of 12 and pens are sold in packages of 8.
To find:
Least amount of markers and pens Rick needs to buy to have an equal number of markers and pens
Solution:
To find the least amount of markers and pens, we need to find the LCM of 12 and 8.
Prime factors of 8 and 12 are


To find the LCM, multiply all factors but the common factors are included only once.


Therefore, the least amount of markers and pens Rick needs to buy to have an equal number of markers and pens is 24.