select SUM(LINE_NUM) as `Number of Products purchased`,  BRAND_TYPE as `Brand`
	from LGCUSTOMER 
    natural join LGINVOICE 
    natural join LGLINE 
    natural join LGPRODUCT
    natural join LGBRAND 
    where
		CUST_STATE = "ME" 
	group by BRAND_TYPE;