For the CYA test, you round up to the number - you can't interpret between the lines so your CYA would be measured at 40.
The spacing between the lines on CYA viewing tubes varies and is not linear. With all the uncertainties in this test don't bother trying to interpolate between the lines on the test tube, always round up to the previous line.
If you want your CYA at 40, you are fine. If you want to raise it, use the powdered or liquid stabilizer and avoid those pucks.
Beware of Metals Added to Algaecides or Trichlor
Metals can also be inadvertently added to the pool water by pool owners. Metal ions were often found in many different commercially available
algaecides but, more recently, have been added to many types of “multipurpose” chlorine tablets.
These tablets often contain only partial amounts of
TriChlor (a chlorine source) but often have sizable fractions of baking soda, metal salts (like
copper citrate or
copper sulfate) and weak clarifiers in them. Pool owners are fooled in paying more for less active sanitizer, chlorine.
The key word to look for and avoid is anything that has the work "Blue" in it. That is market speak for copper. These products are something you want to avoid.