How are joint costs allocated? Explain and analyze using numerical example

How are joint costs allocated? Explain and analyze using numerical example