The meaning of "line mattress and pillows if you are allergic to dust mites"

Solution 1:

To line a mattress and a pillow means to use a mattress protector and a pillow cover as the first layer followed by a top layer which is the bedsheet and the pillow case. You can google the images of a mattress cover and a pillow cover.