First, let X denote the number of defectives in our sample of 8. Then, X|theta ~ Bin(8, theta), clearly; using Bayes rule, we get
With this, we now solve the problem in two steps. First, we need f(2), which we get via
Once you have this, just calculate xi(.1|2) and xi(.2|2), and you are done.