Think of it this way: the g function is doing SOME AS-YET-UNKNOWN THINGS to (–x + 7) to turn it into (2x + 1). Of the simple mathematical operations probably at play here (addition, subtraction, multiplication, division) what could be going on?

First, the only way you go from –x to 2x is you multiply by –2. So let’s see what happens if we just multiply f(x) by –2.

–2(–x + 7) = 2x – 14

OK, so the first part’s good now, but how can we turn –14 into +1? Well, we don’t want to multiply or divide again because that would screw up the 2x we just nailed down, so why don’t we try adding 15?

2x – 14 + 15 = 2x + 1

Combine the two operations we just did (multiply by –2, add 15) and you have the g function. The function g will multiply its argument by –2, then add 15. Mathematically, we can write that like this:

g(x) = –2x + 15

Now, start from the top and make sure we’re right.

g(f(x))
= g(–x + 7)             <– substitute (–x + 7) for f(x)
= –2(–x + 7) + 15   <– apply the g function to (–x + 7)
= 2x – 14 + 15
= 2x + 1

It works! Now all we need to do is calculate g(2).

g(2) = –2(2) + 15
g(2) = 11

from Tumblr https://ift.tt/2PpIGmd
{"ft_lang_label":"__label__en","ft_lang_prob":0.8583099,"math_prob":0.9986531,"size":1122,"snap":"2021-43-2021-49","text_gpt3_token_len":387,"char_repetition_ratio":0.12343471,"word_repetition_ratio":0.05982906,"special_character_ratio":0.36898395,"punctuation_ratio":0.1042471,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998522,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-22T09:45:53Z\",\"WARC-Record-ID\":\"<urn:uuid:cd0b68a4-823e-492e-8a7c-4bcf55b07feb>\",\"Content-Length\":\"47906\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:112ec54f-6699-4c75-b1c7-6fbdf772cf19>\",\"WARC-Concurrent-To\":\"<urn:uuid:8cbb2936-3708-4936-bc76-80d619d63191>\",\"WARC-IP-Address\":\"162.214.30.103\",\"WARC-Target-URI\":\"https://pwntestprep.com/2018/09/if-fx-x7-and-gfx2x1-what-is-the-value-of-g2-helppp-plzzz/\",\"WARC-Payload-Digest\":\"sha1:CXT5DY2K3XNID3FFSMY2Y7XMVL2PLQSI\",\"WARC-Block-Digest\":\"sha1:AOIIEHUQDIDUSY7MQQJVZ2J7DUFHUCF5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585504.90_warc_CC-MAIN-20211022084005-20211022114005-00219.warc.gz\"}"}