with a_pc as
(select PC.model
, PC.Price
from PC
, product pr
where PC.Model = pr.model
and pr.maker = 'A'
union all
select lp.model
, lp.Price
from laptop lp
where lp.Model = pr.model
and pr.maker = 'A')
select avg(price)
from a_pc