Let x = the number of clay pots. Since Matthew bought 27 pots in total, the number of ceramic pots he bought is 27-x.
63 liters = (1 liter)*(x clay pots) + (5 liters)*(27-x ceramic pots)
63 = x + 135 - 5x
63 = 135 - 4x
Solve for x (clay pots), then 27-x (ceramic pots).