There is more than one way of dealing with the revenue from the by-product.
Here, you write that the questions specifically tells you to assume that it is deducted from the joint costs – therefore that is what you do! You deduct it from the joint costs.