In an examination of 100 marks a person attempted 77 questions and got 42 correct answer and 35 wrong answer. If each correct answer carried 2 marks and wrong answer carried 0.50 marks. How much total marks the person scored?

In what system do you get .5 marks for a wrong answer?

Did you mean .5 marks are deducted for a wrong answer?

then what is 2(42) - 35(.5) ??

This question makes no sense.
If there are a total of 100 marks, and each correct answer is worth 2 marks, then there could only be a maximum of 50 questions.
How could the person answer 77 of them?

MathMate and I both answered a similar problem a few years ago:
http://www.jiskha.com/display.cgi?id=1417162742
After you find and fix your problem, follow this example.

To calculate the total marks scored, we need to consider the marks for correct answers and the marks for wrong answers.

1. Calculate the marks for correct answers:
The person attempted 77 questions and got 42 correct answers. Since each correct answer carries 2 marks, the total marks for correct answers is 42 x 2 = 84 marks.

2. Calculate the marks for wrong answers:
The person attempted 77 questions and got 35 wrong answers. Since each wrong answer carries 0.50 marks, the total marks for wrong answers is 35 x 0.50 = 17.50 marks.

3. Calculate the total marks scored:
To get the total marks, we add the marks for correct answers and the marks for wrong answers. Therefore, the total marks scored is 84 + 17.50 = 101.50 marks.

Therefore, the person scored a total of 101.50 marks.