Well guys here's what I got after enquiring Emirates.
Dear LovetoTravel83,
Thank you for your online query,
Kindly note that if your travelling with EK818 from Riyadh to Dubai in Economy class and EK225 from Dubai to San Francisco in Business in one ticket, will consider as business class ticket, and baggage allowance will be 2pieces of 32kgs.